package com.gc.client;

import com.gc.consumer.RpcConsumer;
import com.gc.service.IUserService;

public class ClientBootstrap {

  //  public static final String providerName = "UserService#sayHello#";

    public static void main(String[] args) throws InterruptedException {
        // 创建一个代理对象
        IUserService service = (IUserService) RpcConsumer.createProxy(IUserService.class);
        while(true) {
            System.out.println(service.sayHello("are you ok ?"));
            Thread.sleep(1000);
        }
    }
}



